<template>
  <uni-forms class="login-form" ref="form">
    <uni-forms-item name="name">
      <input
        type="text"
        placeholder="请输入手机号"
        class="uni-input-input"
        placeholder-style="color: #818181"
      />
    </uni-forms-item>
    <uni-forms-item name="name">
      <input
        type="text"
        placeholder="请输入验证码"
        class="uni-input-input"
        placeholder-style="color: #818181"
      />
      <text class="text-button">获取验证码</text>
    </uni-forms-item>
    <button class="submit-button">登录</button>
  </uni-forms>
</template>
<style lang="scss" scoped>
.uni-forms-item {
  height: 100rpx;
  margin-bottom: 20 !important;
  border-bottom: 2rpx solid #eee;
  box-sizing: border-box;
}

::v-deep .uni-forms-item__content {
  display: flex;
  align-items: center;
}

::v-deep input {
  width: 100%;
  font-size: 14px;
  color: #2a2929;
}

::v-deep .uni-forms-item__error {
  width: 100%;
  padding-top: 10rpx;
  border-top: 2rpx solid #ef4f3f;
  color: #ef4f3f;
  font-size: 28rpx;
  transition: none;
}

.text-button {
  width: 300rpx;
  padding-left: 10rpx;
  text-align: center;
  font-size: 28rpx;
  color: 28rpx;
  border-left: 2rpx solid #eee;
}

.submit-button {
  height: 100rpx;
  line-height: 100rpx;
  /* #ifdef APP */
  padding-top: 4rpx;
  /* #endif */
  margin-top: 80rpx;
  border: none;
  color: #fff;
  background-color: #ef4f3f;
  border-radius: 100rpx;
  font-size: 36rpx;
}

button[disabled] {
  background-color: #fadcd9;
  color: #fff;
}
</style>
